<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core">
    <h:head>
        <title>Facelet Title</title>
    </h:head>
    <h:body>
        <ui:composition template="/template/masterPage.xhtml" >
            <ui:define name="content">
                <h:form>
                    <p:wizard widgetVar="wiz"  flowListener="#{registerBean.onFlowProcess}">
                        <p:tab id="personal"  title="Personal">
                            <p:panel header="Personal">
                                <h:messages errorClass="error"/>

                                <h:panelGrid columns="2" columnClasses="label, value" styleClass="grid">
                                    <h:outputText value="UserName : " />
                                    <p:inputText required="true" label="txtUserName"
                                                 value="#{registerBean.userName}" />

                                    <h:outputText value="Password : " />
                                    <p:password required="true" label="txtPassword"
                                                 value="#{registerBean.passWord}" />

                                    <h:outputText value="Confirm Password : " />
                                    <p:password required="true" label="txtConfirmpassword" />

                                </h:panelGrid>
                            </p:panel>
                        </p:tab>
                         <p:tab id="Information"  title="Information">
                            <p:panel header="Information">
                                <h:messages errorClass="error"/>
                                <h:panelGrid columns="2" columnClasses="label, value" styleClass="grid">
                                    <h:outputText value="FullName : " />
                                    <p:inputText required="true" label="txtFullName"
                                                value="#{registerBean.userName}" />
                                     <h:outputText value="Gender : " />
                                     <p:selectOneRadio id="options" value="#{formBean.number}">
                                        <f:selectItem itemLabel="Male" itemValue="true" />
                                        <f:selectItem itemLabel="Female" itemValue="false" />
                                    </p:selectOneRadio>
                                    <h:outputText value="Birthdate : " />
                                    <h:outputText value="#{calendarBean.date2}" id="popupDate">
                                    <f:convertDateTime pattern="dd/MM/yyyy"/>
                                    </h:outputText>  
                                    <h:outputText value="Email : " />
                                    <p:inputText required="true" label="txtEmail"
                                                 value="#{registerBean.userName}" />
                                    <h:outputText value="Phone : " />
                                    <p:inputText required="true" label="txtPhone"
                                                 value="#{registerBean.userName}" />
                                    <h:outputText value="Address : " />
                                    <p:inputText required="true" label="txtAddress"
                                                 value="#{registerBean.userName}" />
                                </h:panelGrid>
                            </p:panel>
                        </p:tab>
                    </p:wizard>
                </h:form>

            </ui:define>
        </ui:composition>
    </h:body>
</html>

